package com.my.study.common.message;

import java.io.Serializable;

/**
 * @author Carlos
 * @version 1.0
 * @Description 客户端和服务端通信时的消息对象
 * @date 2021/7/18 9:33
 **/
public class Message implements Serializable {
    private static final long serialVersionUID = -1173975474331176707L;
    /** 发送者 */
    private String sender;
    /** 接收者 */
    private String receiver;
    /** 发送的内容 */
    private String content;
    /**
     * 消息类型
     * @see MessageType
     */
    private String msgType;


    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
}
